package fr.cdj.thebox.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import fr.cdj.thebox.shared.AccessDeniedException;
import fr.cdj.thebox.shared.User;
import fr.cdj.thebox.shared.WrongLoginException;

@RemoteServiceRelativePath("loginService")
public interface LoginService extends RemoteService {

	User loginServer(String name, String password) throws WrongLoginException;
	 
    User loginFromSessionServer();
     
    boolean changePassword(String name, String newPassword) throws AccessDeniedException;
 
    void logout();
	
}
